package xiaoluo.android.demo;

import xiaoluo.android.demo.datastore.FileOperationDemo;
import xiaoluo.android.demo.datastore.NetworkDemo;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class toDataStore extends Activity {
	Button buttonNetworkDemo;
	Button buttonFileOperationDemo;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_to_datastore);
		
		buttonNetworkDemo = (Button) findViewById(R.id.buttonNetworkDemo);
		buttonNetworkDemo.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(toDataStore.this, NetworkDemo.class);
				startActivity(intent);
			}
		});
		
		buttonFileOperationDemo = (Button) findViewById(R.id.buttonFileOperationDemo);
		buttonFileOperationDemo.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(toDataStore.this, FileOperationDemo.class);
				startActivity(intent);
			}
		});
	}
}
